ViewParentCompat

Helper for accessing features in ViewParent.

Functions

Link copied to clipboard
open fun notifySubtreeAccessibilityStateChanged(@NonNull parent: ViewParent, @NonNull child: View, @NonNull source: View, changeType: Int)
Notifies a view parent that the accessibility state of one of its descendants has changed and that the structure of the subtree is different.
Link copied to clipboard
open fun onNestedFling(@NonNull parent: ViewParent, @NonNull target: View, velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Request a fling from a nested scroll.
Link copied to clipboard
open fun onNestedPreFling(@NonNull parent: ViewParent, @NonNull target: View, velocityX: Float, velocityY: Float): Boolean
React to a nested fling before the target view consumes it.
Link copied to clipboard
open fun onNestedPreScroll(@NonNull parent: ViewParent, @NonNull target: View, dx: Int, dy: Int, @NonNull consumed: Array<Int>)
open fun onNestedPreScroll(@NonNull parent: ViewParent, @NonNull target: View, dx: Int, dy: Int, @NonNull consumed: Array<Int>, type: Int)
React to a nested scroll in progress before the target view consumes a portion of the scroll.
Link copied to clipboard
open fun onNestedScroll(@NonNull parent: ViewParent, @NonNull target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)
open fun onNestedScroll(@NonNull parent: ViewParent, @NonNull target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int)
open fun onNestedScroll(@NonNull parent: ViewParent, @NonNull target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int, @NonNull consumed: Array<Int>)
React to a nested scroll in progress.
Link copied to clipboard
open fun onNestedScrollAccepted(@NonNull parent: ViewParent, @NonNull child: View, @NonNull target: View, nestedScrollAxes: Int)
open fun onNestedScrollAccepted(@NonNull parent: ViewParent, @NonNull child: View, @NonNull target: View, nestedScrollAxes: Int, type: Int)
React to the successful claiming of a nested scroll operation.
Link copied to clipboard
open fun onStartNestedScroll(@NonNull parent: ViewParent, @NonNull child: View, @NonNull target: View, nestedScrollAxes: Int): Boolean
open fun onStartNestedScroll(@NonNull parent: ViewParent, @NonNull child: View, @NonNull target: View, nestedScrollAxes: Int, type: Int): Boolean
React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.
Link copied to clipboard
open fun onStopNestedScroll(@NonNull parent: ViewParent, @NonNull target: View)
open fun onStopNestedScroll(@NonNull parent: ViewParent, @NonNull target: View, type: Int)
React to a nested scroll operation ending.
Link copied to clipboard
Called by a child to request from its parent to send an AccessibilityEvent.